#include"Stack.h"

void TestStack1()
{
	ST st;
	STInit(&st);


	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);
	STPush(&st, 5);


	printf("%d\n", STSize(&st));
	if (!STEmpty(&st))
	{
		printf("0\n");
	}
	printf("%d\n", STTop(&st));
	STPop(&st);
	printf("%d\n", STTop(&st));
	STPop(&st);
	printf("%d\n", STTop(&st));
	STPop(&st);
	printf("%d\n", STTop(&st));
	STPop(&st);
	printf("%d\n", STTop(&st));

	STDestory(&st);

}

int main()
{
	TestStack1();

	return 0;
}